﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="KPIS.GERP.SERVICE.WorkflowService.WorkflowService.Activity.CheckAbsenceActivity" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="KPIS.GERP.SERVICE.WorkflowService.WorkflowService.Activity.CheckAbsenceActivity_1"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:kgsm="clr-namespace:KPIS.GERP.SERVICE.Model;assembly=KPIS.GERP.SERVICE.Model"
 xmlns:local="clr-namespace:KPIS.GERP.SERVICE.WorkflowService.CodeActivity"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>System.Globalization</x:String>
      <x:String>KPIS.GERP.SERVICE.DAL</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>KPIS.GERP.SERVICE.DAL</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence DisplayName="Sequential Service" sap2010:WorkflowViewState.IdRef="Sequence_10">
    <TextExpression.Namespaces>
      <sco:Collection x:TypeArguments="x:String">
        <x:String>System</x:String>
        <x:String>System.Collections.Generic</x:String>
        <x:String>System.Data</x:String>
        <x:String>System.Linq</x:String>
        <x:String>System.Text</x:String>
        <x:String>KPIS.GERP.SERVICE.Model</x:String>
        <x:String>System.Globalization</x:String>
        <x:String>KPIS.GERP.SERVICE.DAL</x:String>
        <x:String>System.ServiceModel.Activities</x:String>
      </sco:Collection>
    </TextExpression.Namespaces>
    <TextExpression.References>
      <sco:Collection x:TypeArguments="AssemblyReference">
        <AssemblyReference>KPIS.DBM</AssemblyReference>
        <AssemblyReference>Microsoft.CSharp</AssemblyReference>
        <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
        <AssemblyReference>System.Web.DynamicData</AssemblyReference>
        <AssemblyReference>System.Drawing</AssemblyReference>
        <AssemblyReference>System.Web.Entity</AssemblyReference>
        <AssemblyReference>System.Web.ApplicationServices</AssemblyReference>
        <AssemblyReference>System</AssemblyReference>
        <AssemblyReference>System.Activities</AssemblyReference>
        <AssemblyReference>System.Data</AssemblyReference>
        <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
        <AssemblyReference>System.ServiceModel</AssemblyReference>
        <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
        <AssemblyReference>System.ServiceModel.Channels</AssemblyReference>
        <AssemblyReference>System.Web</AssemblyReference>
        <AssemblyReference>System.Web.Extensions</AssemblyReference>
        <AssemblyReference>System.Xaml</AssemblyReference>
        <AssemblyReference>System.Xml</AssemblyReference>
        <AssemblyReference>System.Xml.Linq</AssemblyReference>
        <AssemblyReference>KPIS.GERP.SERVICE.DAL</AssemblyReference>
        <AssemblyReference>KPIS.GERP.SERVICE.Model</AssemblyReference>
        <AssemblyReference>System.Core</AssemblyReference>
        <AssemblyReference>mscorlib</AssemblyReference>
        <AssemblyReference>KPIS.GERP.SERVICE.WorkflowService</AssemblyReference>
      </sco:Collection>
    </TextExpression.References>
    <Sequence.Variables>
      <Variable x:TypeArguments="x:String" Name="emp_seq" />
      <Variable x:TypeArguments="x:String" Name="absence_type_seq" />
      <Variable x:TypeArguments="s:DateTime" Name="start_date" />
      <Variable x:TypeArguments="s:DateTime" Name="end_date" />
      <Variable x:TypeArguments="x:String" Name="contact_address" />
      <Variable x:TypeArguments="x:String" Name="description" />
      <Variable x:TypeArguments="x:String" Name="created_by" />
      <Variable x:TypeArguments="x:String" Name="start_time" />
      <Variable x:TypeArguments="x:String" Name="end_time" />
      <Variable x:TypeArguments="s:DateTime" Name="create_date" />
      <Variable x:TypeArguments="x:String" Name="bgm_year" />
      <Variable x:TypeArguments="scg:List(kgsm:message_warning)" Name="list_message_warning" />
      <Variable x:TypeArguments="s:Nullable(x:Int32)" Name="emp_type_seq" />
      <Variable x:TypeArguments="scg:List(kgsm:rule_absence)" Name="list_rule_absence" />
      <Variable x:TypeArguments="s:Nullable(x:Int32)" Name="send_before" />
      <Variable x:TypeArguments="s:Nullable(x:Decimal)" Name="time_limit" />
      <Variable x:TypeArguments="s:Nullable(x:Decimal)" Name="day_per_time_limit" />
      <Variable x:TypeArguments="scg:List(kgsm:summary_hrm_ps_absence)" Name="list_summary_hrm_ps_absence" />
      <Variable x:TypeArguments="x:Boolean" Default="False" Name="checkTimelimit" />
      <Variable x:TypeArguments="x:Boolean" Default="False" Name="checkBeforeAfter" />
      <Variable x:TypeArguments="scg:List(x:String)" Name="list_warning">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="scg:List(x:String)">new List&lt;string&gt;()</mca:CSharpValue>
        </Variable.Default>
      </Variable>
      <Variable x:TypeArguments="x:Decimal" Name="leaveCountDays" />
      <Variable x:TypeArguments="x:Boolean" Default="False" Name="checkDayPerTime" />
      <Variable x:TypeArguments="x:Boolean" Name="checkDaylimit" />
      <Variable x:TypeArguments="s:Nullable(x:Decimal)" Name="time_count">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">0</mca:CSharpValue>
        </Variable.Default>
      </Variable>
      <Variable x:TypeArguments="s:Nullable(x:Decimal)" Name="day_count">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">0</mca:CSharpValue>
        </Variable.Default>
      </Variable>
      <Variable x:TypeArguments="s:Nullable(x:Decimal)" Name="day_limit" />
      <Variable x:TypeArguments="x:String" Name="result" />
      <Variable x:TypeArguments="x:String" Name="screeningMessage" />
      <Variable x:TypeArguments="x:String" Name="absence_seq" />
      <Variable x:TypeArguments="x:String" Name="record_status" />
      <Variable x:TypeArguments="x:String" Name="update_by" />
      <Variable x:TypeArguments="p:CorrelationHandle" Name="__handle1" />
    </Sequence.Variables>
    <p:Receive x:Name="__ReferenceID0" CanCreateInstance="True" DisplayName="ReceiveNewRequest" sap2010:WorkflowViewState.IdRef="Receive_1" OperationName="GetNewRequest" ServiceContractName="ICheckRulesService">
      <p:Receive.CorrelationInitializers>
        <p:RequestReplyCorrelationInitializer>
          <p:RequestReplyCorrelationInitializer.CorrelationHandle>
            <InArgument x:TypeArguments="p:CorrelationHandle">
              <mca:CSharpValue x:TypeArguments="p:CorrelationHandle">__handle1</mca:CSharpValue>
            </InArgument>
          </p:RequestReplyCorrelationInitializer.CorrelationHandle>
        </p:RequestReplyCorrelationInitializer>
      </p:Receive.CorrelationInitializers>
      <p:ReceiveParametersContent>
        <OutArgument x:TypeArguments="x:String" x:Key="emp_seq">
          <mca:CSharpReference x:TypeArguments="x:String">emp_seq</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="x:String" x:Key="absence_type_seq">
          <mca:CSharpReference x:TypeArguments="x:String">absence_type_seq</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="s:DateTime" x:Key="start_date">
          <mca:CSharpReference x:TypeArguments="s:DateTime">start_date</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="s:DateTime" x:Key="end_date">
          <mca:CSharpReference x:TypeArguments="s:DateTime">end_date</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="x:String" x:Key="contact_address">
          <mca:CSharpReference x:TypeArguments="x:String">contact_address</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="x:String" x:Key="description">
          <mca:CSharpReference x:TypeArguments="x:String">description</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="x:String" x:Key="created_by">
          <mca:CSharpReference x:TypeArguments="x:String">created_by</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="x:String" x:Key="start_time">
          <mca:CSharpReference x:TypeArguments="x:String">start_time</mca:CSharpReference>
        </OutArgument>
        <OutArgument x:TypeArguments="x:String" x:Key="end_time">
          <mca:CSharpReference x:TypeArguments="x:String">end_time</mca:CSharpReference>
        </OutArgument>
      </p:ReceiveParametersContent>
    </p:Receive>
    <Sequence DisplayName="Sequence Preparing" sap2010:WorkflowViewState.IdRef="Sequence_1">
      <Assign sap2010:WorkflowViewState.IdRef="Assign_1">
        <Assign.To>
          <OutArgument x:TypeArguments="s:DateTime">
            <mca:CSharpReference x:TypeArguments="s:DateTime">create_date</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:DateTime">
            <mca:CSharpValue x:TypeArguments="s:DateTime">DateTime.Now</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_2">
        <Assign.To>
          <OutArgument x:TypeArguments="x:String">
            <mca:CSharpReference x:TypeArguments="x:String">bgm_year</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">(new ThaiBuddhistCalendar().GetYear(DateTime.Now)).ToString()</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <local:Select_MessageWarning in_message_seq="{x:Null}" in_message_type="{x:Null}" sap2010:WorkflowViewState.IdRef="Select_MessageWarning_1">
        <local:Select_MessageWarning.Result>
          <OutArgument x:TypeArguments="scg:List(kgsm:message_warning)">
            <mca:CSharpReference x:TypeArguments="scg:List(kgsm:message_warning)">list_message_warning</mca:CSharpReference>
          </OutArgument>
        </local:Select_MessageWarning.Result>
      </local:Select_MessageWarning>
      <local:Get_EmpTypeSeq in_IsGetHrmMpClasses="{x:Null}" in_IsGetHrmMpClassesOld="{x:Null}" in_IsGetHrmMpExecPositions="{x:Null}" in_IsGetHrmMpJobSites="{x:Null}" in_IsGetHrmMpPositions="{x:Null}" in_IsGetHrmPsEmployeeStatuses="{x:Null}" in_IsGetHrmPsEmployeeTypes="{x:Null}" in_IsGetMasBloodGroups="{x:Null}" in_IsGetMasGenders="{x:Null}" in_IsGetMasMaritalStatuses="{x:Null}" in_IsGetMasNamePrefixes="{x:Null}" in_IsGetMasNationalities="{x:Null}" in_IsGetMasNationalitiesRace="{x:Null}" in_IsGetMasReligions="{x:Null}" in_active="{x:Null}" in_class_seq="{x:Null}" in_emp_status_seq="{x:Null}" in_emp_type_seq="{x:Null}" in_exec_pos_seq="{x:Null}" in_pos_seq="{x:Null}" in_working_job_site_seq="{x:Null}" sap2010:WorkflowViewState.IdRef="Get_EmpTypeSeq_1">
        <local:Get_EmpTypeSeq.Result>
          <OutArgument x:TypeArguments="s:Nullable(x:Int32)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Int32)">emp_type_seq</mca:CSharpReference>
          </OutArgument>
        </local:Get_EmpTypeSeq.Result>
        <local:Get_EmpTypeSeq.in_emp_seq>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">emp_seq</mca:CSharpValue>
          </InArgument>
        </local:Get_EmpTypeSeq.in_emp_seq>
      </local:Get_EmpTypeSeq>
      <local:Select_RuleAbsence in_isGetHrmPsAbsenceType="{x:Null}" in_isGetHrmPsEmployeeType="{x:Null}" in_isGetRuleApproveType="{x:Null}" in_rule_absence_seq="{x:Null}" sap2010:WorkflowViewState.IdRef="Select_RuleAbsence_1">
        <local:Select_RuleAbsence.Result>
          <OutArgument x:TypeArguments="scg:List(kgsm:rule_absence)">
            <mca:CSharpReference x:TypeArguments="scg:List(kgsm:rule_absence)">list_rule_absence</mca:CSharpReference>
          </OutArgument>
        </local:Select_RuleAbsence.Result>
        <local:Select_RuleAbsence.in_absence_type_seq>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">absence_type_seq</mca:CSharpValue>
          </InArgument>
        </local:Select_RuleAbsence.in_absence_type_seq>
        <local:Select_RuleAbsence.in_emp_type_seq>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">emp_type_seq.ToString()</mca:CSharpValue>
          </InArgument>
        </local:Select_RuleAbsence.in_emp_type_seq>
      </local:Select_RuleAbsence>
      <local:Select_SummaryHrmPsAbsence sap2010:WorkflowViewState.IdRef="Select_SummaryHrmPsAbsence_1">
        <local:Select_SummaryHrmPsAbsence.Result>
          <OutArgument x:TypeArguments="scg:List(kgsm:summary_hrm_ps_absence)">
            <mca:CSharpReference x:TypeArguments="scg:List(kgsm:summary_hrm_ps_absence)">list_summary_hrm_ps_absence</mca:CSharpReference>
          </OutArgument>
        </local:Select_SummaryHrmPsAbsence.Result>
        <local:Select_SummaryHrmPsAbsence.in_absence_type_seq>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">absence_type_seq</mca:CSharpValue>
          </InArgument>
        </local:Select_SummaryHrmPsAbsence.in_absence_type_seq>
        <local:Select_SummaryHrmPsAbsence.in_bgm_year>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">bgm_year</mca:CSharpValue>
          </InArgument>
        </local:Select_SummaryHrmPsAbsence.in_bgm_year>
        <local:Select_SummaryHrmPsAbsence.in_emp_seq>
          <InArgument x:TypeArguments="x:String">
            <mca:CSharpValue x:TypeArguments="x:String">emp_seq</mca:CSharpValue>
          </InArgument>
        </local:Select_SummaryHrmPsAbsence.in_emp_seq>
      </local:Select_SummaryHrmPsAbsence>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_3">
        <Assign.To>
          <OutArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Decimal)">time_count</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">list_summary_hrm_ps_absence.SingleOrDefault().time_count</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_4">
        <Assign.To>
          <OutArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Decimal)">time_limit</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">list_rule_absence.SingleOrDefault().time_limit</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_5">
        <Assign.To>
          <OutArgument x:TypeArguments="s:Nullable(x:Int32)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Int32)">send_before</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:Nullable(x:Int32)">
            <mca:CSharpValue x:TypeArguments="s:Nullable(x:Int32)">list_rule_absence.SingleOrDefault().send_before</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_6">
        <Assign.To>
          <OutArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Decimal)">day_per_time_limit</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">list_rule_absence.SingleOrDefault().day_per_time_limit</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_7">
        <Assign.To>
          <OutArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Decimal)">day_count</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">list_summary_hrm_ps_absence.SingleOrDefault().day_count</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign sap2010:WorkflowViewState.IdRef="Assign_8">
        <Assign.To>
          <OutArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpReference x:TypeArguments="s:Nullable(x:Decimal)">day_limit</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="s:Nullable(x:Decimal)">
            <mca:CSharpValue x:TypeArguments="s:Nullable(x:Decimal)">list_rule_absence.SingleOrDefault().day_limit</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
    </Sequence>
    <Parallel sap2010:WorkflowViewState.IdRef="Parallel_1">
      <If sap2010:WorkflowViewState.IdRef="If_1">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">(time_count+Convert.ToDecimal(1))&lt;=time_limit</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_9">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Boolean">
                <mca:CSharpReference x:TypeArguments="x:Boolean">checkTimelimit</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Boolean">True</InArgument>
            </Assign.Value>
          </Assign>
        </If.Then>
        <If.Else>
          <Sequence DisplayName="Sequence Over TimeLimit" sap2010:WorkflowViewState.IdRef="Sequence_2">
            <local:Add_MessageWarning sap2010:WorkflowViewState.IdRef="Add_MessageWarning_1">
              <local:Add_MessageWarning.in_list_message>
                <InOutArgument x:TypeArguments="scg:List(x:String)">
                  <mca:CSharpReference x:TypeArguments="scg:List(x:String)">list_warning</mca:CSharpReference>
                </InOutArgument>
              </local:Add_MessageWarning.in_list_message>
              <local:Add_MessageWarning.in_message>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">list_message_warning.Find(r =&gt; r.message_seq == 9).message_th</mca:CSharpValue>
                </InArgument>
              </local:Add_MessageWarning.in_message>
            </local:Add_MessageWarning>
            <Assign sap2010:WorkflowViewState.IdRef="Assign_10">
              <Assign.To>
                <OutArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpReference x:TypeArguments="x:Boolean">checkTimelimit</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:Boolean">False</InArgument>
              </Assign.Value>
            </Assign>
          </Sequence>
        </If.Else>
      </If>
      <If sap2010:WorkflowViewState.IdRef="If_3">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">send_before == 0</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Sequence DisplayName="Sequence checkBeforeAfter Unlimit" sap2010:WorkflowViewState.IdRef="Sequence_3">
            <Assign sap2010:WorkflowViewState.IdRef="Assign_11">
              <Assign.To>
                <OutArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpReference x:TypeArguments="x:Boolean">checkBeforeAfter</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:Boolean">True</InArgument>
              </Assign.Value>
            </Assign>
          </Sequence>
        </If.Then>
        <If.Else>
          <Sequence DisplayName="Sequence checkBeforeAfter" sap2010:WorkflowViewState.IdRef="Sequence_5">
            <local:Rule_BeforAfter sap2010:WorkflowViewState.IdRef="Rule_BeforAfter_1">
              <local:Rule_BeforAfter.Result>
                <OutArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpReference x:TypeArguments="x:Boolean">checkBeforeAfter</mca:CSharpReference>
                </OutArgument>
              </local:Rule_BeforAfter.Result>
              <local:Rule_BeforAfter.in_date_leave>
                <InArgument x:TypeArguments="s:DateTime">
                  <mca:CSharpValue x:TypeArguments="s:DateTime">start_date.Date</mca:CSharpValue>
                </InArgument>
              </local:Rule_BeforAfter.in_date_leave>
              <local:Rule_BeforAfter.in_date_request>
                <InArgument x:TypeArguments="s:DateTime">
                  <mca:CSharpValue x:TypeArguments="s:DateTime">create_date.Date</mca:CSharpValue>
                </InArgument>
              </local:Rule_BeforAfter.in_date_request>
              <local:Rule_BeforAfter.in_date_rule>
                <InArgument x:TypeArguments="x:Int32">
                  <mca:CSharpValue x:TypeArguments="x:Int32">Convert.ToInt32(send_before)</mca:CSharpValue>
                </InArgument>
              </local:Rule_BeforAfter.in_date_rule>
            </local:Rule_BeforAfter>
            <If sap2010:WorkflowViewState.IdRef="If_2">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">checkBeforeAfter</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Assign sap2010:WorkflowViewState.IdRef="Assign_12">
                  <Assign.To>
                    <OutArgument x:TypeArguments="x:Boolean">
                      <mca:CSharpReference x:TypeArguments="x:Boolean">checkBeforeAfter</mca:CSharpReference>
                    </OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                  </Assign.Value>
                </Assign>
              </If.Then>
              <If.Else>
                <Sequence DisplayName="Sequence checkBeforeAfter Invalid" sap2010:WorkflowViewState.IdRef="Sequence_4">
                  <local:Add_MessageWarning sap2010:WorkflowViewState.IdRef="Add_MessageWarning_2">
                    <local:Add_MessageWarning.in_list_message>
                      <InOutArgument x:TypeArguments="scg:List(x:String)">
                        <mca:CSharpReference x:TypeArguments="scg:List(x:String)">list_warning</mca:CSharpReference>
                      </InOutArgument>
                    </local:Add_MessageWarning.in_list_message>
                    <local:Add_MessageWarning.in_message>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">list_message_warning.Find(r =&gt; r.message_seq == 11).message_th</mca:CSharpValue>
                      </InArgument>
                    </local:Add_MessageWarning.in_message>
                  </local:Add_MessageWarning>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_13">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpReference x:TypeArguments="x:Boolean">checkBeforeAfter</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:Boolean">False</InArgument>
                    </Assign.Value>
                  </Assign>
                </Sequence>
              </If.Else>
            </If>
          </Sequence>
        </If.Else>
      </If>
      <If sap2010:WorkflowViewState.IdRef="If_5">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">day_per_time_limit == Convert.ToDecimal(0)</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Sequence DisplayName="Sequence leaveCountDays Unlimit" sap2010:WorkflowViewState.IdRef="Sequence_6">
            <local:Rule_CountDay sap2010:WorkflowViewState.IdRef="Rule_CountDay_1">
              <local:Rule_CountDay.Result>
                <OutArgument x:TypeArguments="x:Decimal">
                  <mca:CSharpReference x:TypeArguments="x:Decimal">leaveCountDays</mca:CSharpReference>
                </OutArgument>
              </local:Rule_CountDay.Result>
              <local:Rule_CountDay.in_date_from>
                <InArgument x:TypeArguments="s:DateTime">
                  <mca:CSharpValue x:TypeArguments="s:DateTime">start_date</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_date_from>
              <local:Rule_CountDay.in_date_to>
                <InArgument x:TypeArguments="s:DateTime">
                  <mca:CSharpValue x:TypeArguments="s:DateTime">end_date</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_date_to>
              <local:Rule_CountDay.in_time_from>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">start_time</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_time_from>
              <local:Rule_CountDay.in_time_to>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">end_time</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_time_to>
            </local:Rule_CountDay>
            <Assign sap2010:WorkflowViewState.IdRef="Assign_14">
              <Assign.To>
                <OutArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpReference x:TypeArguments="x:Boolean">checkDayPerTime</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:Boolean">True</InArgument>
              </Assign.Value>
            </Assign>
          </Sequence>
        </If.Then>
        <If.Else>
          <Sequence DisplayName="Sequence leaveCountDays" sap2010:WorkflowViewState.IdRef="Sequence_8">
            <local:Rule_CountDay sap2010:WorkflowViewState.IdRef="Rule_CountDay_2">
              <local:Rule_CountDay.Result>
                <OutArgument x:TypeArguments="x:Decimal">
                  <mca:CSharpReference x:TypeArguments="x:Decimal">leaveCountDays</mca:CSharpReference>
                </OutArgument>
              </local:Rule_CountDay.Result>
              <local:Rule_CountDay.in_date_from>
                <InArgument x:TypeArguments="s:DateTime">
                  <mca:CSharpValue x:TypeArguments="s:DateTime">start_date</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_date_from>
              <local:Rule_CountDay.in_date_to>
                <InArgument x:TypeArguments="s:DateTime">
                  <mca:CSharpValue x:TypeArguments="s:DateTime">end_date</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_date_to>
              <local:Rule_CountDay.in_time_from>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">start_time</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_time_from>
              <local:Rule_CountDay.in_time_to>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">end_time</mca:CSharpValue>
                </InArgument>
              </local:Rule_CountDay.in_time_to>
            </local:Rule_CountDay>
            <If sap2010:WorkflowViewState.IdRef="If_4">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">leaveCountDays &lt;= day_per_time_limit</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Assign sap2010:WorkflowViewState.IdRef="Assign_15">
                  <Assign.To>
                    <OutArgument x:TypeArguments="x:Boolean">
                      <mca:CSharpReference x:TypeArguments="x:Boolean">checkDayPerTime</mca:CSharpReference>
                    </OutArgument>
                  </Assign.To>
                  <Assign.Value>
                    <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                  </Assign.Value>
                </Assign>
              </If.Then>
              <If.Else>
                <Sequence DisplayName="Sequence leaveCountDays Invalid" sap2010:WorkflowViewState.IdRef="Sequence_7">
                  <local:Add_MessageWarning sap2010:WorkflowViewState.IdRef="Add_MessageWarning_3">
                    <local:Add_MessageWarning.in_list_message>
                      <InOutArgument x:TypeArguments="scg:List(x:String)">
                        <mca:CSharpReference x:TypeArguments="scg:List(x:String)">list_warning</mca:CSharpReference>
                      </InOutArgument>
                    </local:Add_MessageWarning.in_list_message>
                    <local:Add_MessageWarning.in_message>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">list_message_warning.Find(r =&gt; r.message_seq == 13).message_th</mca:CSharpValue>
                      </InArgument>
                    </local:Add_MessageWarning.in_message>
                  </local:Add_MessageWarning>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_16">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpReference x:TypeArguments="x:Boolean">checkDayPerTime</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:Boolean">False</InArgument>
                    </Assign.Value>
                  </Assign>
                </Sequence>
              </If.Else>
            </If>
          </Sequence>
        </If.Else>
      </If>
      <If sap2010:WorkflowViewState.IdRef="If_6">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">(day_count + leaveCountDays) &lt;= day_limit</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Assign sap2010:WorkflowViewState.IdRef="Assign_17">
            <Assign.To>
              <OutArgument x:TypeArguments="x:Boolean">
                <mca:CSharpReference x:TypeArguments="x:Boolean">checkDaylimit</mca:CSharpReference>
              </OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="x:Boolean">True</InArgument>
            </Assign.Value>
          </Assign>
        </If.Then>
        <If.Else>
          <Sequence DisplayName="Sequence checkDaylimit" sap2010:WorkflowViewState.IdRef="Sequence_9">
            <local:Add_MessageWarning sap2010:WorkflowViewState.IdRef="Add_MessageWarning_4">
              <local:Add_MessageWarning.in_list_message>
                <InOutArgument x:TypeArguments="scg:List(x:String)">
                  <mca:CSharpReference x:TypeArguments="scg:List(x:String)">list_warning</mca:CSharpReference>
                </InOutArgument>
              </local:Add_MessageWarning.in_list_message>
              <local:Add_MessageWarning.in_message>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">list_message_warning.Find(r =&gt; r.message_seq == 15).message_th</mca:CSharpValue>
                </InArgument>
              </local:Add_MessageWarning.in_message>
            </local:Add_MessageWarning>
            <Assign sap2010:WorkflowViewState.IdRef="Assign_18">
              <Assign.To>
                <OutArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpReference x:TypeArguments="x:Boolean">checkDaylimit</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:Boolean">False</InArgument>
              </Assign.Value>
            </Assign>
          </Sequence>
        </If.Else>
      </If>
    </Parallel>
    <If sap2010:WorkflowViewState.IdRef="If_7">
      <If.Condition>
        <InArgument x:TypeArguments="x:Boolean">
          <mca:CSharpValue x:TypeArguments="x:Boolean">checkTimelimit&amp;&amp;checkBeforeAfter&amp;&amp;checkDayPerTime&amp;&amp;checkDaylimit</mca:CSharpValue>
        </InArgument>
      </If.Condition>
      <If.Then>
        <Assign sap2010:WorkflowViewState.IdRef="Assign_19">
          <Assign.To>
            <OutArgument x:TypeArguments="x:String">
              <mca:CSharpReference x:TypeArguments="x:String">screeningMessage</mca:CSharpReference>
            </OutArgument>
          </Assign.To>
          <Assign.Value>
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">list_message_warning.Find(r =&gt; r.message_seq == 23).message_th</mca:CSharpValue>
            </InArgument>
          </Assign.Value>
        </Assign>
      </If.Then>
      <If.Else>
        <Assign sap2010:WorkflowViewState.IdRef="Assign_20">
          <Assign.To>
            <OutArgument x:TypeArguments="x:String">
              <mca:CSharpReference x:TypeArguments="x:String">screeningMessage</mca:CSharpReference>
            </OutArgument>
          </Assign.To>
          <Assign.Value>
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">string.Join(", ", list_warning.ToArray())</mca:CSharpValue>
            </InArgument>
          </Assign.Value>
        </Assign>
      </If.Else>
    </If>
    <local:Insert_HrmPsAbsence sap2010:WorkflowViewState.IdRef="Insert_HrmPsAbsence_1">
      <local:Insert_HrmPsAbsence.Result>
        <OutArgument x:TypeArguments="x:String">
          <mca:CSharpReference x:TypeArguments="x:String">result</mca:CSharpReference>
        </OutArgument>
      </local:Insert_HrmPsAbsence.Result>
      <local:Insert_HrmPsAbsence.in_absence_type_seq>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">absence_type_seq</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_absence_type_seq>
      <local:Insert_HrmPsAbsence.in_bgm_year>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">bgm_year</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_bgm_year>
      <local:Insert_HrmPsAbsence.in_contact_address>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">contact_address</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_contact_address>
      <local:Insert_HrmPsAbsence.in_created_by>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">created_by</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_created_by>
      <local:Insert_HrmPsAbsence.in_day_count>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">leaveCountDays.ToString()</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_day_count>
      <local:Insert_HrmPsAbsence.in_description>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">description</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_description>
      <local:Insert_HrmPsAbsence.in_emp_seq>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">emp_seq</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_emp_seq>
      <local:Insert_HrmPsAbsence.in_end_date>
        <InArgument x:TypeArguments="s:DateTime">
          <mca:CSharpValue x:TypeArguments="s:DateTime">end_date</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_end_date>
      <local:Insert_HrmPsAbsence.in_end_time>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">end_time</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_end_time>
      <local:Insert_HrmPsAbsence.in_record_status>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">Common.WaitStatus</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_record_status>
      <local:Insert_HrmPsAbsence.in_remarks>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">screeningMessage</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_remarks>
      <local:Insert_HrmPsAbsence.in_start_date>
        <InArgument x:TypeArguments="s:DateTime">
          <mca:CSharpValue x:TypeArguments="s:DateTime">start_date</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_start_date>
      <local:Insert_HrmPsAbsence.in_start_time>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">start_time</mca:CSharpValue>
        </InArgument>
      </local:Insert_HrmPsAbsence.in_start_time>
    </local:Insert_HrmPsAbsence>
    <p:SendReply Request="{x:Reference __ReferenceID0}" DisplayName="SendResponse" sap2010:WorkflowViewState.IdRef="SendReply_1">
      <p:SendParametersContent>
        <InArgument x:TypeArguments="x:String" x:Key="message">
          <mca:CSharpValue x:TypeArguments="x:String">"คำร้องที่:" + result + " ผลการตรวจสอบเงื่อนไขคำร้อง:" + screeningMessage</mca:CSharpValue>
        </InArgument>
        <InArgument x:TypeArguments="x:String" x:Key="absence_seq">
          <mca:CSharpValue x:TypeArguments="x:String">result</mca:CSharpValue>
        </InArgument>
      </p:SendParametersContent>
    </p:SendReply>
    <sads:DebugSymbol.Symbol>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</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="Receive_1" sap:VirtualizedContainerService.HintSize="264,86" />
      <sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Select_MessageWarning_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Get_EmpTypeSeq_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Select_RuleAbsence_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Select_SummaryHrmPsAbsence_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_5" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_6" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_7" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_8" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="264,1148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_9" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Add_MessageWarning_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_10" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_1" sap:VirtualizedContainerService.HintSize="531,734" />
      <sap2010:ViewStateData Id="Assign_11" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="264,186">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Rule_BeforAfter_1" sap:VirtualizedContainerService.HintSize="531,22" />
      <sap2010:ViewStateData Id="Assign_12" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Add_MessageWarning_2" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_13" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_2" sap:VirtualizedContainerService.HintSize="531,398" />
      <sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="553,584">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="842,734" />
      <sap2010:ViewStateData Id="Rule_CountDay_1" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_14" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Rule_CountDay_2" sap:VirtualizedContainerService.HintSize="531,22" />
      <sap2010:ViewStateData Id="Assign_15" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Add_MessageWarning_3" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_16" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_7" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_4" sap:VirtualizedContainerService.HintSize="531,398" />
      <sap2010:ViewStateData Id="Sequence_8" sap:VirtualizedContainerService.HintSize="553,584">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="842,734" />
      <sap2010:ViewStateData Id="Assign_17" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Add_MessageWarning_4" sap:VirtualizedContainerService.HintSize="242,22" />
      <sap2010:ViewStateData Id="Assign_18" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Sequence_9" sap:VirtualizedContainerService.HintSize="264,248">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_6" sap:VirtualizedContainerService.HintSize="531,734" />
      <sap2010:ViewStateData Id="Parallel_1" sap:VirtualizedContainerService.HintSize="264,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_19" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_20" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_7" sap:VirtualizedContainerService.HintSize="264,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Insert_HrmPsAbsence_1" sap:VirtualizedContainerService.HintSize="264,22" />
      <sap2010:ViewStateData Id="SendReply_1" sap:VirtualizedContainerService.HintSize="264,86" />
      <sap2010:ViewStateData Id="Sequence_10" sap:VirtualizedContainerService.HintSize="286,1768">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="KPIS.GERP.SERVICE.WorkflowService.WorkflowService.Activity.CheckAbsenceActivity_1" sap:VirtualizedContainerService.HintSize="326,1848" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>